using UnityEngine;
using System.Collections;

public class ShootingManager : MonoBehaviour 
{
	//Creates New Bullets on the screen
	
	public Transform bullet;
	
	// Use this for initialization
	void Start () 
	{
	
	}
	
	// Update is called once per frame
	void Update () 
	{
		if(Input.GetButtonDown("Fire1"))//mouse right click
		{
			CreateShoot();
		}	
	}
	//creates a bullet on the predefined point.
	void CreateShoot()
	{
		Transform shoot;
		
		shoot = Instantiate(bullet, transform.position, Quaternion.identity) as Transform;
	}
}
